# find_element(By.Xpath,'Xpath表达式')
# 绝对路径


# 相对路径
# //标签名[@属性名="属性值"]
# //input[@type="submit"]
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
d = webdriver.Chrome()
d.get('http://192.168.0.125:9009/wp-login.php')
time.sleep(4)

search = d.find_element(By.XPATH,'//Input[@id="user_login"]')
search.send_keys('admin')


search = d.find_element(By.XPATH,'//input[@name="pwd"]')
search.send_keys('admin123')
time.sleep(5)

button = d.find_element(By.XPATH,'//input[@name="wp-submit"]')
button.click()
time.sleep(4)


d.quit()
